package com.example.chinesenation.ElasticSearch;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.chinesenation.VO.Search.VOArticleSearch;
import com.example.chinesenation.VO.Search.VOPolicySearch;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.Date;
import java.util.HashMap;

/**
 * @author sakuraFallingDown
 * @version 1.0
 * @date 2021/1/29 15:13
 */
public interface  ElasticSearchService {
    IPage<VOPolicySearch> searchPolicy(String nation
            , String keyword
            , Date start, Date end
            , int orderByType
            , int current
            , int size) throws IOException;
    IPage<VOArticleSearch> searchArticle(String nation
            , String category
            , String keyword
            , Date start, Date end
            , int orderByType
            , int current
            , int size) throws IOException;

    void updateArticlePageView(HashMap<String,Integer> articlePageView);
    void updatePolicyPageView(HashMap<String,Integer> policyPageView);

}
